#ifdef WIN32

#include "MainWindow.h"

void Draw ( ESContext *esContext )
{
   renderFrame();
   eglSwapBuffers ( esContext->eglDisplay, esContext->eglSurface );
}

int main ( int argc, char *argv[] )
{
   ESContext esContext;
   esInitContext ( &esContext );
   esCreateWindow ( &esContext, "Hello 3D :)", 320, 240, ES_WINDOW_RGB );
   setupGraphics(esContext.width,esContext.height); 
   esRegisterDrawFunc ( &esContext, Draw );
   esMainLoop ( &esContext );
}

#endif